package com.liang.pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class FixPoolDemo {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(10);

        for (int i = 1; i <= 13; i++) {
            executorService.submit(()->{
                System.out.println(Thread.currentThread().getName()+"执行了");
            });
        }
        executorService.shutdown();
    }
}
